<?php
ob_start();?><?php
include("config.php");
require_once("auth.php");
$id=$_POST['id'];
$pt=$_POST['txtPaymentType'];
$allowed=$_POST['txtAllowed'];
$data=mysql_query("update payment set PaymentType='$pt',Allowed='$allowed' where PaymentID=$id");
if($data)
{
header("location: displaypayments.php?updated=updated");
}
else
{
echo mysql_error();
}
?>